import request from '@/utils/request'

export function process(instId) {
  const param = {
    params: {
      id: instId
    }
  }
  return request.post('buss/wf/process', null, param)
}

export function processByModule(url,instId) {
  const param = {
    params: {
      id: instId
    }
  }
  return request.post(url, null, param)
}

export function startItem(params) {
  return request.post('buss/wf/start', params)
}

export function completeItem(params) {
  return request.post('buss/wf/complete', params)
}

export function getNodeAttribute(param) {
  return request.post('buss/wf/node/attribute', param)
}

export function getNodeAttributeByModule(param) {
  return request.post(param.url, param)
}
